<?php require_once("includes/security.php"); ?>
<?php 
require_once("includes/initializeSession.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="JavaScript" type="text/javascript" src="Script/jquery-1.9.1.js"></script>
<script language="JavaScript" type="text/javascript" src="Script/functions.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript">
$(document).ready(function() {
   $("#first").click();
});
</script>
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>קליניקה נטורופתית</title>
</head>

<body>
<container id="container">
  <?php require("header.php"); ?>
      <content id="content">
      <contentTitle id="contentTitle">
      הצמחים והטיפולים שלנו
      </contentTitle>
      <contentText id="contentText">
<center>
<?php   if (!isset($_SESSION['UserName'])) {?>
<h1  style=" color:#F00"  > אנא התחבר למערכת אם ברצונך לבצע הזמנות </h1>
<?php }?>
<h1  style="display:inline; color:#66F" id="productName" > titleeee </h1>
<h1  style=" display:inline;vertical-align:top;color:#66F;" id="productPrice">
price
</h1>
<h3  style=" vertical-align:top; color:#66F;" id="productDesc"> desc </h3>

<img style=" vertical-align:top;display:inline;"  width="400" height="400" higet name="preview" src="" alt=""/>
<div  class="thumbnails" >
  <?php 	
require("includes/openConnection.php");
$result = mysql_query("SELECT * FROM `product` where visible =1")or die ('אין דף כזה'.mysql_error());
if(mysql_num_rows($result) > 0)
{
			while($row = mysql_fetch_array($result))
			{	
			$id=$row['id'];
			$name=$row['name'];
			$description=$row['description'];
			$price=$row['price'];		
			$pic_path=$row['pic_path'];
			$visible=$row['visible'];
			echo "<img width=100 height=100 id=first   onclick=handleClick(this);  src=".$pic_path." alt='$name' title='$name' productName='$name' description='$description' price='$price' productid='$id' />";
			}
}
require("includes/closeConnection.php");
?>
</div>

</contentText>
      </content>
</container>
    
     
    
</body>
</html>
